-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose shape fields #272
Expose shape fields #272
Conversation
17c7ab2
to
8e13f53
Compare
Probably the getter methods of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is correct: paths are quite expensive to calculate. I left some corrections suggested. You can also remove the getter methods of Shape
since the fields are now public. For the rest, it looks good.
Co-authored-by: Federico Rinaldi <[email protected]>
As per @Nilirad suggestion.
Great! I think that should be it, then. |
Description
Making the
Shape
fields public allows for surgical modifications without requiring to rebuild thePath
when only changes to the color or the options of some field are desired.Implementation
Shape
attributes public.This works since
src/plugins.rs:mesh_shapes_system
is triggered by changes in the fields of aShape
.